package com.example.addressbook.perspectives;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import com.example.addressbook.ids.AddressBook;

public class AddressesPerspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		layout.setEditorAreaVisible(false);
		layout.addView(AddressBook.VIEW_ID_ADDRESS_LIST, IPageLayout.LEFT,
				0.2f, layout.getEditorArea());
		layout.addView(AddressBook.VIEW_ID_ADDRESS, IPageLayout.TOP, 0.5f,
				layout.getEditorArea());
		layout.addView(AddressBook.VIEW_ID_MAP, IPageLayout.BOTTOM, 0.5f,
				layout.getEditorArea());
	}
}
